home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Aug 89 / X0064-Re Resident code-Aug89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  1.3 KB  |  36 lines  |  [TEXT/GEOL]

  1. Item    4888976                         16-Aug-89        11:37
  2.  
  3. From:   MOOF                            Rollin, Keith A,APL
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Re: Resident code
  8.  
  9. Dav Holle,
  10.  
  11. EqualBlocks is marked in the source code as being in the 'Main' segment. This
  12. segment is ALWAYS resident, regardless of whatever else goes on. Well, you
  13. could kick it out of memory if you wanted, but believe me now and hear me
  14. later...you don't want to...
  15.  
  16. There are also some code segments that are managed by MacApp to be always
  17. resident. These are listed in your and MacApp's 'seg!' resources. If you would
  18. like to see the list of routines in these segments, link your program with the
  19. -map option. It'll dump your a list of some several thousand routines and what
  20. segments they are in. Happy browsing...
  21.  
  22. If you are ever concerned about wether or not a certain routine is permanently
  23. resident, or would like to temporarily make a routine resident that isn't
  24. normally, then you could call SetResidentSegment yourself. MacApp does this
  25. itself if you are printing from the Finder (from TApplication.Run):
  26.  
  27.    findSeg := GetSegNumber(@FinderSegProc);
  28.    IF gFinderPrinting THEN
  29.    SetResidentSegment(findSeg, TRUE);
  30.  
  31. Hope this helps,
  32.  
  33. - Keith Rollin
  34. - Apple Developer Technical Support
  35.  
  36.